import os
os.environ['DJANGO_SETTINGS_MODULE'] = '__main__'

from django.db.models import signals
from django.dispatch import dispatcher

from sqlalchemy import *
from sqlalchemy.ext.sessioncontext import SessionContext
from sqlalchemy.ext.assignmapper import assign_mapper

metadata = DynamicMetaData('django')
context = SessionContext(create_session)

def create_all():
    metadata.create_all()

import sadjango.models_patch
import sadjango.fields_patch

